import request from "@/router/axios";

//专家分类列表
export const getEInquiryList = (current, size, params) => {
  return request({
    url: "/api/blade-expert/eInquiry/list",
    method: "get",
    params: {
      ...params,
      current,
      size,
    },
  });
};
//新增分类模块
export const addEInquiryItem = (row) => {
  return request({
    url: "/api/blade-expert/eInquiry/submit",
    method: "post",
    data: row,
  });
};
//新增分类模块
export const updateEInquiryItem = (row) => {
  return request({
    url: "/api/blade-expert/eInquiry/update",
    method: "post",
    data: row,
  });
};
//删除分类模块
export const deleteEInquiryItem = (ids) => {
  return request({
    url: "/api/blade-expert/eInquiry/remove",
    method: "post",
    params: {
      ids,
    },
  });
};

export const getExpertList = () => {
  return request({
    url: "/api/blade-user/findTenantPostList?tenantId=760859&category=6",
    method: "get",
    params: {},
  });
};

//咨询师详情
export const getExpertDetail = (userId, tenantId) => {
  return request({
    url: "/api/blade-expert/eInquiry/detail",
    method: "get",
    params: {
      userId,
      tenantId,
    },
  });
};
